<template>
<div>
  <div class="faq-list" @click="show=!show">
    <div class="faq-c">
      <div class="faq-tt">
        <div class="faq-t">
          {{ $t('faq.w_'+index) }}?
        </div>
        <div class="faq-index2">
          <van-icon v-if="show" name="arrow-down" />
          <van-icon v-else name="arrow-up" />
        </div>
      </div>
    </div>

</div>

  <div v-if="!show" class="faq-dv">
         <span  v-if="index==17">
             <a class="lt1" target="_parent" href="https://www.geckoterminal.com/bsc/pools/0x25423d9ba909a3b412606977aea8b96fb215cf07"> {{ $t('faq.d_'+index) }}</a>
         </span>
    <span v-else>{{ $t('faq.d_'+index) }}</span>
  </div>
  </div>

</template>

<script>
// @ is an alias to /src
import i18n from '@/i18n';

export default {
  name: 'wudaoFaq',
  props: {
    index: Number,
  },
  data() {
    return {
      show: true
    };
  },
  created() {

    if (i18n.locale == 'zh') {
      this.$store.state.isZh = true
    } else {
      this.$store.state.isZh = false
    }
  },
  methods: {

  }

}
</script>

<style scoped>
.faq-list {
  /* Rectangle 27 */
  width: 100%;
  box-sizing: border-box;
  padding: 5px 10px ;
  margin-bottom: 20px;
  background: linear-gradient(360deg, #373737 0%, #0C0C0C 100%);
  border: 1px solid #EAAC82;
  border-radius: 16px;
  position: relative;
  z-index:1;
  box-shadow: 0 20px 20px 0 rgb(0,0,0);
  transition: all 1s;
}

.faq-index {
  min-width: 30px;
  display: flex;
  align-items: center;
  padding: 10px;
}

.a-index {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  fon-size: 12px;
  font-weight: bold;
  background: linear-gradient(0deg, #FFC000 0%, #EE822F 100%);
}


.faq-c {
  padding: 8px 0;
  flex-grow: 1;

}

.faq-tt {
  display: flex;
  justify-content: space-between;

}

.faq-index2 {
  min-width: 30px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  /* Group 1707480051 */
  color: #FB8417;

}

.faq-t {

  font-family: 'Dream Han Sans SC';
  font-style: normal;
  font-weight: 693;
  font-size: 14px;
  line-height: 17px;

  color: #FB8417;

}

.faq-d {
  font-size: 13px;
  color: #ebe6e6;
  line-height: 20px;

}

.faq-d .left {
  display: inline-flex;
  width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 20px;
}

.faq-dv {
  display: inline-flex;

  text-overflow: ellipsis;
  /* RousePro 是一个双币策略建立在全链上金融协议，拥有一个完善的发行奖励机制，它结合了Defi，V3池，代币智能技术，无需DAPP 无APP，且发行前人人平等，RousePro与WuDao零私募，零预留，零节点，合约开源且放弃权限，目标创建一个真正的DAO自治社区，实现平等、公正、透明且民主的自治社区。 */
  font-family: 'Dream Han Sans SC';
  font-style: normal;
  font-weight: 398;
  font-size: 12px;
  line-height: 14px;
  text-align: justify;

  color: #D9D9D9;
  /* Rectangle 28 */
  width: 100%;
  box-sizing: border-box;
  padding: 30px 15px 20px 15px;
  background: #0C0D0E;
  border-bottom: 1px solid #FFFFFF;
  border-left:  1px solid #FFFFFF;
  border-right:  1px solid #FFFFFF;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 16px;
  position: relative;
  top: -35px;
  transition: all 1s;
}

@keyframes animated-border {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(131, 184, 17, 0);
  }
}

.js {
  animation: animated-border 1.5s infinite;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  border: #FFC000 solid 1px;
  border-radius: 10px;
  padding: 20px;
  /* margin: 0 40px; */

}


.home_1 {
  display: flex;
  padding: 0;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 30px
}

.h-txt {

  font-size: 25px;

  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 20px;

  background: linear-gradient(0deg, #FFC000 0%, #EE822F 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.home {
  padding: 60px 25px;
  max-width: 500px;
  margin: auto;
  color: #ebe6e6;
  background-color: #000;
  font-size: 14px;
  line-height: 20px;
  height: auto;
  /*  padding-bottom: 100px;*/
  margin-top: -58px;

}

.mac {
  padding: 0 20px;
  width: 100%;
}

.home_2 {
  display: flex;
  align-items: center;
  flex-direction: column;

}

.l {
  height: 300px;
  padding-top: 30px;
}

.lt {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: -210px;
  margin-bottom: 40px;

}

.lt1 {
  color: #FFBF00;

}


.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 25px;
  background: #000;
  align-items: center;
  color: #e7440d;
  max-width: 500px;
  margin: 0 auto;
  font-size: 12px;
  border-top: #161616 solid 2px;
  background-image: url('~@/assets/foot.png');

  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.foot_img {
  width: 80px;
}


</style>